<?php



class ReactionMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.ReactionMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('reaction');
		$tMap->setPhpName('Reaction');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addForeignKey('USER_ID', 'UserId', 'int', CreoleTypes::INTEGER, 'user', 'ID', false, null);

		$tMap->addForeignKey('STATEMENT_ID', 'StatementId', 'int', CreoleTypes::INTEGER, 'statement', 'ID', false, null);

		$tMap->addColumn('TEXT', 'Text', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('VIDEO_RAW_EMBED_CODE', 'VideoRawEmbedCode', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('VIDEO_RAW_LINK', 'VideoRawLink', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('VIDEO_CODE', 'VideoCode', 'string', CreoleTypes::VARCHAR, false, 128);

		$tMap->addColumn('VIDEO_TYPE', 'VideoType', 'string', CreoleTypes::VARCHAR, false, 32);

		$tMap->addColumn('NUM_RESPECTS', 'NumRespects', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);

	} 
} 